﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApp.Management.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Resources/Js/libs/jquery-1.8.3.min.js"></script>
    <script language="javascript">
        //function to fix height of iframe!
        var calcHeight = function () {
            var headerDimensions = 0; // $('#header-bar').height();
            $('#frame_content').height($(window).height() - headerDimensions);
            $('#frame_content').width($(window).width() - 400);

            $('#_contentFrame').height($(window).height() - headerDimensions);
        }

        $(document).ready(function () {
            calcHeight();
            //                           $('#header-bar a.close').mouseover(function () {
            //                               $('#header-bar a.close').addClass('activated');
            //                           }).mouseout(function () {
            //                               $('#header-bar a.close').removeClass('activated');
            //                           });
        });

        $(window).resize(function () {
            calcHeight();
        }).load(function () {
            calcHeight();
        });
    </script>
</head>
<body style="margin: 0px; padding: 0px;">
    <form id="form1" runat="server">
    <div style="float: left; width: 20%;">
        <ul>
            <li><a href="Company/Update.aspx" target="frame_content">公司信息</a> </li>
            <li><a href="_Summary/Update.aspx" target="frame_content">公司简介</a> </li>
        </ul>
        <ul>
            <li><a href="Categories/List.aspx" target="frame_content">类别管理</a> </li>
            <li><a href="_Article/Create.aspx" target="frame_content">创建新闻</a> </li>
            <li><a href="_Article/List.aspx" target="frame_content">新闻列表</a> </li>
        </ul>
        <ul>
            <li><a href="_PartnerLinks/list.aspx" target="frame_content">合作伙伴</a> </li>
        </ul>
        <ul>
            <li><a href="_Content/ContentList.aspx" target="frame_content">资源管理</a> </li>
        </ul>
        <ul>
            <li><a href="Installation/InstallDB.aspx" target="frame_content">重新安装数据库</a> </li>
        </ul>
    </div>
    <iframe id="frame_content" name="frame_content" frameborder="0" style="position: fixed;
        left: 200px; right: 200px;" />
    <iframe id="_contentFrame" name="_contentFrame" frameborder="1" style="position: fixed;
        width: 200px; right: 0px;" src="_Content/ContentList.aspx" />
    </form>
</body>
</html>
